#include <fstream>
#include <iostream>
#include <vector>
#include <map>

using namespace std;

int main(int argc, char** argv) {
    map<string,int> counter {
        {"hello",3},
        {"world",1},
        {"of",2},
        {"to",5},
        {"and",5},
    };
    vector<pair<string,int>> vec{counter.begin(), counter.end()};
    for (auto &&i : vec)
    {
        std::cout << i.first << " : " << i.second << endl;
    }
    
    return 0;
}